package com.hqyj.itemsservice.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hqyj.itemsservice.domain.Catalog;
import com.hqyj.itemsservice.mapper.CatalogMapper;
import com.hqyj.itemsservice.service.CatalogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CatalogServiceImpl extends ServiceImpl<CatalogMapper, Catalog> implements CatalogService {

    @Resource
    private CatalogMapper catalogMapper;


    @Override
    public List<Catalog> queryAllCatalogs() {
        return catalogMapper.selectList(null);
    }
}
